openapi: 3.0.1
info:
  title: PlatformV API for SmartMarket API
  description: PlatformV API for SmartMarket MVP documentation
  license:
    name: Commercial
  version: 0.1.0
tags:
- name: Platform V component
  description: Platform V components API
paths:
  /compose-schema:
    get:
      summary: Get compose schema
      description: Get schema of compose file for validation
      operationId: getComposeSchema
      tags:
      - Platform V component
      responses:
        200:
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DropAppComposeSchema'
        500:
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorDto'
components:
  schemas:
    DropAppComposeSchema:
      type: string
      description: Compose yml provided by user/system
      example: >-
        version: 3.0.0
        services:
          service-1:
            image: random-image-name
    ErrorDto:
      required:
      - code
      - message
      type: object
      properties:
        code:
          type: string
          description: Error code
        message:
          type: string
          description: Error message
        details:
          type: array
          description: Error details as array of arbitrary objects for automated processing
          example:
          - type: error_doc_link
            errorURL: https://sampleurl.tld/docs/error-codes/123
          - type: localized_message
            localizedErrorMessage: Некорректное значение {} параметра {}
            params:
            - xxx
            - limit
          items:
            type: object
            properties: {}
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
